public class Main {
    public static void main(String[] args) {
        int[] prices = {7,1,5,3,6,4};
        Solution_2 solution2=new Solution_2();
        System.out.println(solution2.maxProfit(prices));
    }
}